using MediatR;
using UniversalAdmin.Domain.Common;

namespace UniversalAdmin.Domain.DomainEvents;

public class RolePermissionAssignedEvent : IDomainEvent, INotification
{
    public Guid RoleId { get; }
    public Guid PermissionId { get; }
    public DateTime OccurredOn { get; }
    public RolePermissionAssignedEvent(Guid roleId, Guid permissionId)
    {
        RoleId = roleId;
        PermissionId = permissionId;
        OccurredOn = DateTime.UtcNow;
    }
} 